<div class="page-content-wrap">
    <div class="row">
        <div style="background: #ffffff;">

            <form class="form-horizontal" name="newForm" novalidate>
                <div class="panel-default">
                    <div class="panel-heading">
                        <h3 class="panel-title"><strong>{{'基本信息' | dyLanguage}}</strong></h3>
                        <!--<ul class="panel-controls">-->
                        <!--<li><a href="javascript:void(0)" class="panel-remove"><span class="fa fa-times"></span></a></li>-->
                        <!--</ul>-->
                    </div>
                    <div class="panel-body panel-dialog">
                        <div class="form-group">
                            <label class="col-md-3 col-xs-12 control-label">{{'列表图' | dyLanguage}}</label>

                            <div class="col-md-6 col-xs-12">
                                <div class="profile-image">
                                    <img ng-src="{{learningMapDetail.picture | faceUrl}}" ngf-select ngf-change="uploadImage($files)" ngf-pattern="'image/*'" ngf-accept="'image/*'" ngf-max-size="20MB" ngf-min-height="100"
                                         ngf-resize="{width: 1000, height: 1000}"
                                         style="cursor: pointer" width="200px" height="100px"/>
                                </div>
                                <span class="help-block">{{'请上传列表图' | dyLanguage}}&nbsp;<i style="cursor: pointer; "><span ng-show="showPictureProgress">({{pictureProgress.value}}%)</span></i></span>
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="col-md-3 col-xs-12 control-label">{{'名称' | dyLanguage}}</label>

                            <div class="col-md-6 col-xs-12">
                                <div class="input-group">
                                    <span class="input-group-addon"><span class="fa fa-pencil"></span></span>
                                    <input type="text" class="form-control" name="name" ng-model="learningMapDetail.name" required/>
                                </div>
                                <span class="help-block" ng-show="(editSMForm.name.$untouched && !editSMForm.$submitted) || editSMForm.name.$valid">{{'请输入学习地图的名称' | dyLanguage}}</span>

                                <div ng-show="(editSMForm.name.$touched || editSMForm.$submitted ) && editSMForm.name.$invalid">
                                    <span class="error-block" ng-show="editSMForm.name.$error.required">{{'必须要输入学习地图的名称' | dyLanguage}}</span>
                                </div>
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="col-md-3 col-xs-12 control-label">{{'描述' | dyLanguage}}</label>

                            <div class="col-md-6 col-xs-12">
                                <textarea class="form-control" rows="5" ng-model="learningMapDetail.remark"></textarea>
                                <span class="help-block">{{'请输入学习地图的描述' | dyLanguage}}</span>
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="col-md-3 col-xs-12 control-label">{{'帮助内容' | dyLanguage}}</label>

                            <div class="col-md-6 col-xs-12">
                                <textarea class="form-control" rows="5" ng-model="learningMapDetail.helpContent"></textarea>
                                <span class="help-block">{{'请输入学习地图的帮助内容' | dyLanguage}}</span>
                            </div>
                        </div>

                    </div>

                    <div class="panel-footer" style="text-align: center;">
                        <button class="btn btn-danger" ng-click="cancel()"><i class="fa fa-times"></i>{{'取消' | dyLanguage}}</button>
                        <button class="btn btn-danger" ng-click="submit()"><i class="fa fa-times"></i>{{'保存' | dyLanguage}}</button>
                    </div>
                </div>
            </form>

        </div>
    </div>

</div>